/**
 * @author今天铲子了吗
 * @host www.wellyyss.cn
 * @qq group 169470811
 */
import Ys3dApp from './ysModules/app.js'
import * as normal from './ysModules/common/normal.js'
import * as usualShader from './ysModules/shader/usual.js'
import needApp from './ysModules/common/needApp.js'
import dataOrModel from './ysModules/dataOrModel/index.js'
import constructor from './ysModules/constructor/index.js'
import listen from "./ysModules/common/registEvent.js"

//注册一般方法
Object.assign(Ys3dApp.prototype, normal)


// shader
Object.assign(Ys3dApp.prototype, usualShader)

//间接注册需要this对象的方法
Object.assign(Ys3dApp.prototype, needApp)

// dataOrModel
Object.assign(Ys3dApp.prototype, dataOrModel)

// constructor
Object.assign(Ys3dApp.prototype, constructor)

//4 注册自定义事件
HTMLElement.prototype.listen = listen


export default Ys3dApp


